<template>
    <div class="content">
        <!-- <upload style="max-width:80%"> -->
            <div class="box">
                <img :src="nullImg" class="color-filter" alt="nullFile">
                <h1>添加文件或拖拽完成上传</h1>
                <h2>支持pdf、jpg、jpeg、png、bmp、tif、tiff格式</h2>
            </div>
        <!-- </upload> -->
    </div>
</template>

<script>
import upload from "./upload";
export default {
    components: {
        upload
    },
    computed: {
        // editMode() {
        //     return this.$store.state.status.editMode;
        // }
    },
    data() {
        return {
            nullImg: require("../../assets/image/empty-file.png")
        };
    }
};
</script>

<style lang="less" scoped>
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    cursor: pointer;
    .box {
        border: 1px dashed #a9b8e6;
        border-radius: 5px;
        padding: 64px;
        display: flex;
        position: relative;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        img[alt='nullFile'] {
            margin: 0;
            width: 100%;
        }
        h1 {
            color: @primary;
            margin-bottom: 0;
            margin-top: 16px;
            font-weight: normal;
            font-size: 28px;
        }
        h2 {
            margin: 0;
            color: gray;
            font-weight: normal;
            font-size: 24px;
        }
        &:after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background: white;
            z-index: 1;
            opacity: 0.3;
        }
    }
}
</style>
